package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xking
 * @since 2019-01-04
 */
@TableName("op_dialogue")
public class OpDialogue extends Model<OpDialogue> {

    private static final long serialVersionUID = 1L;

    /**
     * 对话id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 机构id
     */
	@TableField("info_id")
	private String infoId;

	@TableField(exist = false)
	private String userName;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 对话类型
     */
	private String dialogue;
    /**
     * 管理员id
     */
	@TableField("admin_user_id")
	private Integer adminUserId;
    /**
     * 客户和系统方的区分， 1 表示客户，2表示 系统方
     */
	private Integer type;

	@TableField(exist = false)
	private String typeName;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getId() {
		return id;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getInfoId() {
		return infoId;
	}

	public void setInfoId(String infoId) {
		this.infoId = infoId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getDialogue() {
		return dialogue;
	}

	public void setDialogue(String dialogue) {
		this.dialogue = dialogue;
	}

	public Integer getAdminUserId() {
		return adminUserId;
	}

	public void setAdminUserId(Integer adminUserId) {
		this.adminUserId = adminUserId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
